package com.lwm.meijuzhuji;

/**
 * @author liweimin
 * @date 2020/10/15 16:32
 * @description 定义的枚举类默认继承java.lang.Enum类
 */
public enum Season implements Info {

    SPRING("1", "春"),
    SUMMER("2", "夏"),
    AUTUMN("3", "秋"),
    WINTER("4", "冬");
    private final String name;
    private final String number;

    Season(String name, String number) {
        this.name = name;
        this.number = number;
    }
    public String getName() {
        return name;
    }

    public String getNumber() {
        return number;
    }

    @Override
    public void show() {
        System.out.println("这是一个季节");
    }
}
